import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from '../router'
// 引入pinia
import { createPinia } from 'pinia'

//实例化按需引入 createPinia 构造函数，调用得到pinia对象
// 之后进行挂载使用
const pinia = createPinia()

createApp(App)
.use(ElementPlus)
.use(router)
.use(pinia)
.mount('#app')
